package com.hkt.springboot.api;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RestController
public class HelloController {
     @Value("${username}")
    private String username;

    @GetMapping("/info")
    public Mono<String> hello() {
        return Mono.justOrEmpty(username);
    }
}
